Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove alteredNodes badge on publish button and validateAndDiff request on first flow load #4032

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

jessicamcinchak
Copy link
Member

@jessicamcinchak jessicamcinchak commented Dec 3, 2024

I've noticed that loading flows in the editor feels particularly sluggish lately and leads to more errors in the Preview side panel than usual (and therefore Airbrake too) - eg Error: id "eMxQAgygE6" not found, TypeError: Cannot read properties of undefined (reading 'data') and so on.

This PR proposes removing the "badge" on the publish button which displays how many altered nodes are currently un-published. This badge requires calling validateAndDiff on initial flow load which is fairly expensive and regularly timesout (therefore badge fails to display at all).

Feels like it's an easy win to remove this feature for now (doubt it'll be noticed or missed), only call validateAndDiff when the "Check for cahnges to publish" modal is actually opened and not on first flow load as before, and re-visit this when we talk about publishing designs later this phase. Hopeful it'll free up more space for other requests on first flow load to run and ease a bit of noise in the errors channel 🤞

@jessicamcinchak jessicamcinchak requested a review from a team December 3, 2024 13:23
Copy link

github-actions bot commented Dec 3, 2024

Removed vultr server and associated DNS entries

Copy link
Contributor

@RODO94 RODO94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and agree it's a good change. Users can still review changes by clicking the "Check for changes to Publish" button, which could make it a more meaningful interaction as you'll get better feedback on the changes.

The thing we lose is the orange count badge on the button, and this means team members who click into a service that another colleague is working on, won't see if there's currently unpublished changes until they click the button?

Is the History tab a better place for this tracking / auditing to happen?

@jessicamcinchak
Copy link
Member Author

@RODO94 Because this request is timing out so often, the orange badge is commonly failing to load entirely so I'm quite certain no one is relying on it currently (never comes up in help-issues etc).

"History" tab currently only covers operations, not publishing events - but what we can show on that timeline is definitely one to revisit in future publishing & templates design conversations.

@jessicamcinchak jessicamcinchak merged commit a226423 into main Dec 4, 2024
12 checks passed
@jessicamcinchak jessicamcinchak deleted the jess/remove-alterednodes-badge branch December 4, 2024 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants